# tasks/urls.py
from django.urls import path, re_path
from . import views

app_name = 'tasks'

urlpatterns = [
    path('create', views.task_create, name='task_create'),
    path('list', views.TasksView.as_view(), name='task_list'),
    re_path(r'^detail/(?P<pk>\d+)$', views.task_detail, name='task_detail'),
    re_path(r'^update/(?P<pk>\d+)$', views.task_update, name='task_update'),
    re_path(r'^delete/(?P<pk>\d+)$', views.task_delete, name='task_delete'),
]
